//
//  CaptureDevice.swift
//  二维码扫描
//
//  Created by apple on 2021/6/9.
//

import Foundation
import AVFoundation

final class CaptureDevice: NSObject, ObservableObject {
    var captureDevice: AVCaptureDevice?
    
    var serialNumber: Int? = -1
    
    var diviceSession = AVCaptureSession()
    var deviceDataOutput = AVCaptureMovieFileOutput()
    var videoPreviewLayer = AVCaptureVideoPreviewLayer()
    
    init(captureDevice: AVCaptureDevice) {
        self.captureDevice = captureDevice
    }
}
